<template>
	<el-config-provider :locale="zhCn">
		<div class="h-screen w-screen overflow-x-hidden">
			<router-view />
		</div>
	</el-config-provider>
</template>

<script setup lang="ts">
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import { useUserStore } from '@/stores'

const userStore = useUserStore()

onMounted(() => {
	localStorage.getItem('token') && userStore.getUserInfo()
})
</script>

<style scoped lang="scss"></style>
